<?php
namespace App\Console\Commands\Tasks;

use Illuminate\Console\Command;

class ActivityAutoOnlineCommand extends Command
{
    //命令名
    protected $signature = 'task:activityAutoOnline';

    //命令描述:根据配置自动上线活动
    protected $description = 'auto set activity online';

    public function __construct()
    {
        parent::__construct();
    }

    //业务处理
    public function handle()
    {
        app('model_ad')->where('ad_id', 104)->update(['display' => 1]);
        app('model_gift')->whereIn('id', [528, 529, 530, 531])->update(['sold' => 1]);
    }

}
